
package nccloud.bs.arap.rgcb.maintain.rule.unsave;

import nc.vo.arap.manualcost.AggManualCostVO;
import nc.vo.arap.manualcost.ManualCostVO;
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
import nccloud.arap.util.tool.AllotBillStatus;
import nc.impl.pubapp.pattern.rule.IRule;
import nc.vo.ml.NCLangRes4VoTransl;

public class CheckEnableSendApproveRule implements IRule<AggManualCostVO> {
        public void process(AggManualCostVO[] bills) {
        AggManualCostVO[] var2 = bills;
                int var3 = bills.length;

                for (int var4 = 0; var4 < var3; ++var4) {
            AggManualCostVO bill = var2[var4];
                        nc.vo.arap.manualcost.ManualCostVO header = bill.getParentVO();
                        if (!AllotBillStatus.APPROVING.equalsValue(header.getBillstatus())) {
                                ExceptionUtils.wrappBusinessException(NCLangRes4VoTransl.getNCLangRes().getStrByID("4009012_0", "04009012-0040"));
                        }
                }

        }
}
